setText

open fun setText(text: String)

Sets the string value to be displayed by this TextView.

The behavior depends on the current rendering mode:

  • If useNativeRendering is true, the embedded androidx.appcompat.widget.AppCompatTextView is updated directly.
  • If useNativeRendering is false, this triggers a download of a new image rendered with the provided text from the remote service. This requires internet connectivity.

Parameters

text

The text string to display. If null, it will be treated as an empty string.